package com.qf.edu.utils;

/**
 * @author:huayuzhuo
 * @email:2798866329@qq.com
 * @desc:查询结果在网页分页类
 * @datatime: 2022/4/26 8:47
 */
public class PageUtils {
    //总页数
    private int totalPages;
    //所有数据的条数
    private int totalCount;
    //当前的页码
    private int currentIndex;
    //页面容量
    private int pageSize;

    public PageUtils() {
    }

    public PageUtils(int totalPages, int totalCount, int currentIndex, int pageSize) {
        this.totalPages = totalPages;
        this.totalCount = totalCount;
        this.currentIndex = currentIndex;
        this.pageSize = pageSize;
    }

    public int getTotalPages() {
        return totalPages;
    }

    public void setTotalPages(int totalPages) {
        this.totalPages = totalPages;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public int getCurrentIndex() {
        return currentIndex;
    }

    public void setCurrentIndex(int currentIndex) {
        this.currentIndex = currentIndex;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }
}
